package com.foton.lotteryinfrastructure.infrastru.dao;

import com.foton.lotteryinfrastructure.infrastru.po.UserTakeActivity;
import com.foton.lotteryinfrastructure.infrastru.po.UserTakeActivityCount;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author RenPu
 * @Date 2024/1/2 15:37
 * @Version 1.0
 * @Description: 用户领取活动次数 -DAO
 **/


@Mapper
public interface IUserTakeActivityCountDao {

    /**
     * 根据用户id以及活动id值，查询用户领取次数的情况
     * @param userTakeActivityCount
     * @return
     */
    UserTakeActivityCount queryUserTakeActivityCount(UserTakeActivityCount userTakeActivityCount);


    /**
     * 插入领取次数信息
     * @param userTakeActivityCount 请求入参
     */
//    @DBRouter
    void insert(UserTakeActivityCount userTakeActivityCount);

    /**
     * 更新领取次数信息
     * @param userTakeActivityCount 请求入参
     * @return 更新数量
     */
//    @DBRouter
    int updateLeftCount(UserTakeActivityCount userTakeActivityCount);


}
